package com.hdax.dm.common.config.api;

import com.hdax.dm.entity.base.Image;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

//基于rest风格请求的
//提供的是远程服务能力，起到了控制器的作用
@RestController
public interface ImageControllerApi {
    @PostMapping("/rest/item/image")
    Image image(@RequestParam("targetId")Long targetId,
                @RequestParam("type")Long type,
                @RequestParam("category")Long category);
}
